import 'react-native-gesture-handler';
import React from 'react'
import Home from './components/Home'
import User from './components/User'
import Login from './components/Login'
import Info from './components/Info'
import {View, Text,Button,StatusBar} from 'react-native'
import {NavigationContainer} from '@react-navigation/native'
import {createStackNavigator} from  '@react-navigation/stack'
//创建路由导航栈
const Stack = createStackNavigator();
function App () {
  return(
    // 包裹整个项目
    <NavigationContainer>
                          {/* 初始化页面           隐藏标题   */}
      <Stack.Navigator initialRouteName="Info" headerMode="none">
        {/* 屏幕导航 */}
        <Stack.Screen name="Home" component={Home}/>
        <Stack.Screen name="User" component={User}/>
        <Stack.Screen name="Login" component={Login}/>
        <Stack.Screen name="Info" component={Info}/>
      </Stack.Navigator>
    </NavigationContainer>
  )
}
export default App